
import request from '@/utils/request'

export function getReport(params) {
    return request.post('/report/get/reportService', params);
}


export function deleteReport(id) {
    return request.delete(`/report/deleteById/${id}`);
}

/**
 * 根据id来查询新闻报道
 */
export function getReportById(id) {
    return request.get(`/report/getById/${id}`);
}


export function updateReport(reportData) {
    return request.put('/report/update', reportData);
}

export function saveReport(reportData) {
    return request.post('/report/save', reportData);
}

//根据多个id批量查询数据
export function getReportByids(params) {
    return request.post('/report/getByIds', params, {
    });
}

//批量导出
export function exportReport(params) {
    return request.post('/report/export', params, {
        responseType: 'blob'
    });
}
